<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>接口自动化测试报告</title>
    <meta name="generator" content="HTMLTestRunner 0.8.2.3"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
    
<style type="text/css" media="screen">
body        { font-family: Microsoft YaHei,Tahoma,arial,helvetica,sans-serif;padding: 20px; font-size: 100%; }
table       { font-size: 100%; }

/* -- heading ---------------------------------------------------------------------- */
.heading {
    margin-top: 0ex;
    margin-bottom: 1ex;
}

.heading .description {
    margin-top: 4ex;
    margin-bottom: 6ex;
}

/* -- report ------------------------------------------------------------------------ */
#total_row  { font-weight: bold; }
.passCase   { color: #5cb85c; }
.failCase   { color: #d9534f; font-weight: bold; }
.errorCase  { color: #f0ad4e; font-weight: bold; }
.hiddenRow  { display: none; }
.testcase   { margin-left: 2em; }
</style>

</head>
<body >
<script language="javascript" type="text/javascript">
output_list = Array();

/*level 调整增加只显示通过用例的分类 --Adil
0:Summary //all hiddenRow
1:Failed  //pt hiddenRow, ft none
2:Pass    //pt none, ft hiddenRow
3:Error   // pt hiddenRow, ft none
4:All     //pt none, ft none
下面设置 按钮展开逻辑  --Yang Yao Jun
*/
function showCase(level) {
    trs = document.getElementsByTagName("tr");
    for (var i = 0; i < trs.length; i++) {
        tr = trs[i];
        id = tr.id;
        if (id.substr(0,2) == 'ft') {
            if (level == 2 || level == 0 ) {
                tr.className = 'hiddenRow';
            }
            else {
                tr.className = '';
            }
        }
        if (id.substr(0,2) == 'pt') {
            if (level < 2 || level ==3 ) {
                tr.className = 'hiddenRow';
            }
            else {
                tr.className = '';
            }
        }
    }

    //加入【详细】切换文字变化 --Findyou
    detail_class=document.getElementsByClassName('detail');
    //console.log(detail_class.length)
    if (level == 3) {
        for (var i = 0; i < detail_class.length; i++){
            detail_class[i].innerHTML="收起"
        }
    }
    else{
            for (var i = 0; i < detail_class.length; i++){
            detail_class[i].innerHTML="详细"
        }
    }
}

function showClassDetail(cid, count) {
    var id_list = Array(count);
    var toHide = 1;
    for (var i = 0; i < count; i++) {
        //ID修改 点 为 下划线 -Findyou
        tid0 = 't' + cid.substr(1) + '_' + (i+1);
        tid = 'f' + tid0;
        tr = document.getElementById(tid);
        if (!tr) {
            tid = 'p' + tid0;
            tr = document.getElementById(tid);
        }
        id_list[i] = tid;
        if (tr.className) {
            toHide = 0;
        }
    }
    for (var i = 0; i < count; i++) {
        tid = id_list[i];
        //修改点击无法收起的BUG，加入【详细】切换文字变化 --Findyou
        if (toHide) {
            document.getElementById(tid).className = 'hiddenRow';
            document.getElementById(cid).innerText = "详细"
        }
        else {
            document.getElementById(tid).className = '';
            document.getElementById(cid).innerText = "收起"
        }
    }
}

function html_escape(s) {
    s = s.replace(/&/g,'&');
    s = s.replace(/</g,'<');
    s = s.replace(/>/g,'>');
    return s;
}
</script>
<div class='heading'>
<h1 align="center">接口自动化测试报告</h1>
<h4 style="font-family: Microsoft YaHei"><p class='attribute'><strong>测试人员 : </strong> 周翊</p>
<p class='attribute'><strong>开始时间 : </strong> 2020-02-23 15:24:58</p>
<p class='attribute'><strong>合计耗时 : </strong> 0:00:03</p>
<p class='attribute'><strong>测试结果 : </strong> 共执行测试用例 6条，通过 6条，通过率= 100.00%</p>
</h4>
<a target = "_blank" href=/Users/zhouyi/project/QA/aihuishou-interface/reports/detail_reports/2020-02-23_15_24_54_report.html style="font-size:16px;">点击可查看详细测试报告</a>
</div>



    <p id='show_detail_line'>
    <a class="btn btn-primary" href='javascript:showCase(0)'>通过率 [100.00% ]</a>
    <a class="btn btn-success" href='javascript:showCase(2)'>通过[ 6 ]</a>
    <a class="btn btn-warning" href='javascript:showCase(3)'>错误[ 0 ]</a>
    <a class="btn btn-danger" href='javascript:showCase(1)'>失败[ 0 ]</a>
    <a class="btn btn-info" href='javascript:showCase(4)'>所有[ 6 ]</a>
    </p>
<table id='result_table' class="table table-condensed table-bordered table-hover">
<colgroup>
<col align='left' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
</colgroup>
<tr id='header_row' class="text-center success" style="font-weight: bold;font-size: 20px;">
    <td>用例集/测试用例</td>
    <td>总计</td>
    <td>通过</td>
    <td>错误</td>
    <td>失败</td>
</tr>

<tr id='detail_row' class="text-center active" style="font-size: 14px">
    <td>test_method1.TestMethod1</td>
    <td>3</td>
    <td>3</td>
    <td>0</td>
    <td>0</td>
</tr>

<tr id='pt1_1' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_01</div></td>
    <td colspan='5' align='center'>
    <!--默认收起错误信息 -Findyou
    <button id='btn_pt1_1' type="button"  class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt1_1'>通过</button>
    <div id='div_pt1_1' class="collapse">  -->

    <!-- 默认展开错误信息 -Findyou -->
    <button id='btn_pt1_1' type="button"  class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt1_1'>通过</button>
    <div id='div_pt1_1' class="collapse in" style='text-align: left; color:red;cursor:pointer'>
    <pre>
    
pt1_1: Response: 
{'code': 200, 'resultMessage': '', 'data': [{'categoryId': 1, 'categoryName': '手机', 'order': 1}, {'categoryId': 5, 'categoryName': '笔记本', 'order': 2}, {'categoryId': 6, 'categoryName': '平板电脑', 'order': 3}, {'categoryId': 22, 'categoryName': '摄影摄像', 'order': 4}, {'categoryId': 23, 'categoryName': '单反（微单）机身', 'order': 4}, {'categoryId': 25, 'categoryName': '镜头', 'order': 5}, {'categoryId': 26, 'categoryName': '单反（微单）套机', 'order': 6}, {'categoryId': 48, 'categoryName': '相机', 'order': 11}, {'categoryId': 64, 'categoryName': '智能手表', 'order': 7}, {'categoryId': 66, 'categoryName': '鼠标', 'order': 13}, {'categoryId': 67, 'categoryName': '键盘', 'order': 12}, {'categoryId': 88, 'categoryName': '机械硬盘', 'order': 52}, {'categoryId': 89, 'categoryName': '固态硬盘', 'order': 51}, {'categoryId': 131, 'categoryName': '整箱资源机', 'order': 110}]}


    </pre>
    </div>
    </td>
</tr>

<tr id='pt1_2' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_02</div></td>
    <td colspan='5' align='center'>
    <!--默认收起错误信息 -Findyou
    <button id='btn_pt1_2' type="button"  class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt1_2'>通过</button>
    <div id='div_pt1_2' class="collapse">  -->

    <!-- 默认展开错误信息 -Findyou -->
    <button id='btn_pt1_2' type="button"  class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt1_2'>通过</button>
    <div id='div_pt1_2' class="collapse in" style='text-align: left; color:red;cursor:pointer'>
    <pre>
    
pt1_2: Response: 
{'code': 200, 'resultMessage': '', 'data': [{'brandId': 52, 'brandName': '苹果', 'order': 3, 'icon': 'http://sr.aihuishou.com/image/20181220172301_5201.png'}, {'brandId': 9, 'brandName': '华为 ', 'order': 4, 'icon': 'http://sr.aihuishou.com/image/20181112151137_4733.png'}, {'brandId': 484, 'brandName': '荣耀', 'order': 5, 'icon': 'http://sr.aihuishou.com/image/20181220174015_1515.png'}, {'brandId': 1, 'brandName': 'HTC', 'order': 18, 'icon': 'http://sr.aihuishou.com/image/20181220173423_5522.png'}, {'brandId': 266, 'brandName': '其他品牌', 'order': 38, 'icon': 'http://sr.aihuishou.com/image/20181220181635_4127.png'}]}


    </pre>
    </div>
    </td>
</tr>

<tr id='pt1_3' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_03</div></td>
    <td colspan='5' align='center'>
    <!--默认收起错误信息 -Findyou
    <button id='btn_pt1_3' type="button"  class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt1_3'>通过</button>
    <div id='div_pt1_3' class="collapse">  -->

    <!-- 默认展开错误信息 -Findyou -->
    <button id='btn_pt1_3' type="button"  class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt1_3'>通过</button>
    <div id='div_pt1_3' class="collapse in" style='text-align: left; color:red;cursor:pointer'>
    <pre>
    
pt1_3: Response: 
{'code': 200, 'resultMessage': '', 'data': [{'productId': 27637, 'productName': '苹果 iPhone XR', 'icon': 'http://sr.aihuishou.com/image/5ba364f4e38bb01c3000003d.png'}, {'productId': 32292, 'productName': '苹果 iPhone 11 Pro Max', 'icon': 'http://sr.aihuishou.com/image/20190911102140_5230.png'}, {'productId': 32291, 'productName': '苹果 iPhone 11 Pro', 'icon': 'http://sr.aihuishou.com/image/20190911102120_4045.png'}, {'productId': 32290, 'productName': '苹果 iPhone 11', 'icon': 'http://sr.aihuishou.com/image/20190911102057_8220.png'}, {'productId': 27640, 'productName': '苹果 iPhone XS Max', 'icon': 'http://sr.aihuishou.com/image/5ba3685de38bb01c30000054.png'}, {'productId': 27639, 'productName': '苹果 iPhone XS', 'icon': 'http://sr.aihuishou.com/image/5ba3668ee38bb01c3000004f.png'}, {'productId': 25827, 'productName': '苹果 iPhone X', 'icon': 'http://sr.aihuishou.com/image/5a28b40bc60057c40a000005.png'}, {'productId': 25680, 'productName': '苹果 iPhone 8 Plus', 'icon': 'http://sr.aihuishou.com/image/5a28eed8575a970000000031.png'}, {'productId': 25679, 'productName': '苹果 iPhone 8', 'icon': 'http://sr.aihuishou.com/image/5a28b433575a970000000011.png'}, {'productId': 23423, 'productName': '苹果 iPhone 7 Plus', 'icon': 'http://sr.aihuishou.com/image/5a28ef0d575a970000000039.png'}, {'productId': 23422, 'productName': '苹果 iPhone 7', 'icon': 'http://sr.aihuishou.com/image/5a28ef07b1d1b4e01f000011.png'}, {'productId': 20079, 'productName': '苹果 iPhone SE', 'icon': 'http://sr.aihuishou.com/image/5a28b455c60057c40a000015.png'}, {'productId': 17752, 'productName': '苹果 iPhone 6S Plus', 'icon': 'http://sr.aihuishou.com/image/5a28b479c60057c40a000019.png'}, {'productId': 17726, 'productName': '苹果 iPhone 6S', 'icon': 'http://sr.aihuishou.com/image/5a28b481c60057c40a00001d.png'}, {'productId': 17462, 'productName': '苹果 iPhone 6 Plus', 'icon': 'http://sr.aihuishou.com/image/5a28b493c60057c40a000021.png'}, {'productId': 17461, 'productName': '苹果 iPhone 6', 'icon': 'http://sr.aihuishou.com/image/5a2de81330964b9811000001.png'}, {'productId': 17459, 'productName': '苹果 iPhone 5C', 'icon': 'http://sr.aihuishou.com/image/5a28b4bb575a97000000001d.png'}, {'productId': 17458, 'productName': '苹果 iPhone 5S', 'icon': 'http://sr.aihuishou.com/image/5a28b4c2575a970000000021.png'}, {'productId': 17457, 'productName': '苹果 iPhone 5', 'icon': 'http://sr.aihuishou.com/image/5502adc7c4aec79043000097.png'}, {'productId': 17460, 'productName': '苹果 iPhone 4S', 'icon': 'http://sr.aihuishou.com/image/5a28b4b9c60057c40a000029.png'}, {'productId': 17455, 'productName': '苹果 iPhone 4', 'icon': 'http://sr.aihuishou.com/image/5a28b3cc575a970000000009.png'}, {'productId': 2247, 'productName': '苹果 iPhone 3GS', 'icon': 'http://sr.aihuishou.com/image/5a28b3c4575a970000000005.png'}, {'productId': 2246, 'productName': '苹果 iPhone 3G', 'icon': 'http://sr.aihuishou.com/image/5a28b3b6575a970000000001.png'}]}


    </pre>
    </div>
    </td>
</tr>

<tr id='detail_row' class="text-center active" style="font-size: 14px">
    <td>test_method2.TestMethod2</td>
    <td>3</td>
    <td>3</td>
    <td>0</td>
    <td>0</td>
</tr>

<tr id='pt2_1' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_01</div></td>
    <td colspan='5' align='center'>
    <!--默认收起错误信息 -Findyou
    <button id='btn_pt2_1' type="button"  class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt2_1'>通过</button>
    <div id='div_pt2_1' class="collapse">  -->

    <!-- 默认展开错误信息 -Findyou -->
    <button id='btn_pt2_1' type="button"  class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt2_1'>通过</button>
    <div id='div_pt2_1' class="collapse in" style='text-align: left; color:red;cursor:pointer'>
    <pre>
    
pt2_1: Response: 
{'code': 200, 'resultMessage': '', 'data': [{'categoryId': 1, 'categoryName': '手机', 'order': 1}, {'categoryId': 5, 'categoryName': '笔记本', 'order': 2}, {'categoryId': 6, 'categoryName': '平板电脑', 'order': 3}, {'categoryId': 22, 'categoryName': '摄影摄像', 'order': 4}, {'categoryId': 23, 'categoryName': '单反（微单）机身', 'order': 4}, {'categoryId': 25, 'categoryName': '镜头', 'order': 5}, {'categoryId': 26, 'categoryName': '单反（微单）套机', 'order': 6}, {'categoryId': 48, 'categoryName': '相机', 'order': 11}, {'categoryId': 64, 'categoryName': '智能手表', 'order': 7}, {'categoryId': 66, 'categoryName': '鼠标', 'order': 13}, {'categoryId': 67, 'categoryName': '键盘', 'order': 12}, {'categoryId': 88, 'categoryName': '机械硬盘', 'order': 52}, {'categoryId': 89, 'categoryName': '固态硬盘', 'order': 51}, {'categoryId': 131, 'categoryName': '整箱资源机', 'order': 110}]}


    </pre>
    </div>
    </td>
</tr>

<tr id='pt2_2' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_02</div></td>
    <td colspan='5' align='center'>
    <!--默认收起错误信息 -Findyou
    <button id='btn_pt2_2' type="button"  class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt2_2'>通过</button>
    <div id='div_pt2_2' class="collapse">  -->

    <!-- 默认展开错误信息 -Findyou -->
    <button id='btn_pt2_2' type="button"  class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt2_2'>通过</button>
    <div id='div_pt2_2' class="collapse in" style='text-align: left; color:red;cursor:pointer'>
    <pre>
    
pt2_2: Response: 
{'code': 200, 'resultMessage': '', 'data': [{'brandId': 52, 'brandName': '苹果', 'order': 3, 'icon': 'http://sr.aihuishou.com/image/20181220172301_5201.png'}, {'brandId': 9, 'brandName': '华为 ', 'order': 4, 'icon': 'http://sr.aihuishou.com/image/20181112151137_4733.png'}, {'brandId': 484, 'brandName': '荣耀', 'order': 5, 'icon': 'http://sr.aihuishou.com/image/20181220174015_1515.png'}, {'brandId': 1, 'brandName': 'HTC', 'order': 18, 'icon': 'http://sr.aihuishou.com/image/20181220173423_5522.png'}, {'brandId': 266, 'brandName': '其他品牌', 'order': 38, 'icon': 'http://sr.aihuishou.com/image/20181220181635_4127.png'}]}


    </pre>
    </div>
    </td>
</tr>

<tr id='pt2_3' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_03</div></td>
    <td colspan='5' align='center'>
    <!--默认收起错误信息 -Findyou
    <button id='btn_pt2_3' type="button"  class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt2_3'>通过</button>
    <div id='div_pt2_3' class="collapse">  -->

    <!-- 默认展开错误信息 -Findyou -->
    <button id='btn_pt2_3' type="button"  class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt2_3'>通过</button>
    <div id='div_pt2_3' class="collapse in" style='text-align: left; color:red;cursor:pointer'>
    <pre>
    
pt2_3: Response: 
{'code': 200, 'resultMessage': '', 'data': [{'productId': 27637, 'productName': '苹果 iPhone XR', 'icon': 'http://sr.aihuishou.com/image/5ba364f4e38bb01c3000003d.png'}, {'productId': 32292, 'productName': '苹果 iPhone 11 Pro Max', 'icon': 'http://sr.aihuishou.com/image/20190911102140_5230.png'}, {'productId': 32291, 'productName': '苹果 iPhone 11 Pro', 'icon': 'http://sr.aihuishou.com/image/20190911102120_4045.png'}, {'productId': 32290, 'productName': '苹果 iPhone 11', 'icon': 'http://sr.aihuishou.com/image/20190911102057_8220.png'}, {'productId': 27640, 'productName': '苹果 iPhone XS Max', 'icon': 'http://sr.aihuishou.com/image/5ba3685de38bb01c30000054.png'}, {'productId': 27639, 'productName': '苹果 iPhone XS', 'icon': 'http://sr.aihuishou.com/image/5ba3668ee38bb01c3000004f.png'}, {'productId': 25827, 'productName': '苹果 iPhone X', 'icon': 'http://sr.aihuishou.com/image/5a28b40bc60057c40a000005.png'}, {'productId': 25680, 'productName': '苹果 iPhone 8 Plus', 'icon': 'http://sr.aihuishou.com/image/5a28eed8575a970000000031.png'}, {'productId': 25679, 'productName': '苹果 iPhone 8', 'icon': 'http://sr.aihuishou.com/image/5a28b433575a970000000011.png'}, {'productId': 23423, 'productName': '苹果 iPhone 7 Plus', 'icon': 'http://sr.aihuishou.com/image/5a28ef0d575a970000000039.png'}, {'productId': 23422, 'productName': '苹果 iPhone 7', 'icon': 'http://sr.aihuishou.com/image/5a28ef07b1d1b4e01f000011.png'}, {'productId': 20079, 'productName': '苹果 iPhone SE', 'icon': 'http://sr.aihuishou.com/image/5a28b455c60057c40a000015.png'}, {'productId': 17752, 'productName': '苹果 iPhone 6S Plus', 'icon': 'http://sr.aihuishou.com/image/5a28b479c60057c40a000019.png'}, {'productId': 17726, 'productName': '苹果 iPhone 6S', 'icon': 'http://sr.aihuishou.com/image/5a28b481c60057c40a00001d.png'}, {'productId': 17462, 'productName': '苹果 iPhone 6 Plus', 'icon': 'http://sr.aihuishou.com/image/5a28b493c60057c40a000021.png'}, {'productId': 17461, 'productName': '苹果 iPhone 6', 'icon': 'http://sr.aihuishou.com/image/5a2de81330964b9811000001.png'}, {'productId': 17459, 'productName': '苹果 iPhone 5C', 'icon': 'http://sr.aihuishou.com/image/5a28b4bb575a97000000001d.png'}, {'productId': 17458, 'productName': '苹果 iPhone 5S', 'icon': 'http://sr.aihuishou.com/image/5a28b4c2575a970000000021.png'}, {'productId': 17457, 'productName': '苹果 iPhone 5', 'icon': 'http://sr.aihuishou.com/image/5502adc7c4aec79043000097.png'}, {'productId': 17460, 'productName': '苹果 iPhone 4S', 'icon': 'http://sr.aihuishou.com/image/5a28b4b9c60057c40a000029.png'}, {'productId': 17455, 'productName': '苹果 iPhone 4', 'icon': 'http://sr.aihuishou.com/image/5a28b3cc575a970000000009.png'}, {'productId': 2247, 'productName': '苹果 iPhone 3GS', 'icon': 'http://sr.aihuishou.com/image/5a28b3c4575a970000000005.png'}, {'productId': 2246, 'productName': '苹果 iPhone 3G', 'icon': 'http://sr.aihuishou.com/image/5a28b3b6575a970000000001.png'}]}


    </pre>
    </div>
    </td>
</tr>

<tr id='total_row' class="text-center active" style="font-size: 14px">
    <td>总计</td>
    <td>6</td>
    <td>6</td>
    <td>0</td>
    <td>0</td>
</tr>
</table>

<br/>
<h4>此邮件为系统自动发布，请勿回复！</h4>



<div id='ending'> </div>
    <div style=" position:fixed;right:50px; bottom:30px; width:20px; height:20px;cursor:pointer">
    <a href="#"><span class="glyphicon glyphicon-eject" style = "font-size:30px;" aria-hidden="true">
    </span></a></div>
    

</body>
</html>
